<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.sql.*, support.*, java.util.*, com.google.gson.*"%>
<%
	int id = 0;
	try {
		id = Integer.valueOf(request.getParameter("id"));
	} catch(Exception e) {
		e.printStackTrace();
		return;
	}
	DatabaseAccessObject dao = new DatabaseAccessObject();
	Applicant applicant = dao.getApplicantById(id);
	Gson gson = new Gson();
	String json = gson.toJson(applicant);
	out.println(json);

%>
